package com.wn.base;

import cn.hutool.core.util.ReflectUtil;
import cn.hutool.core.util.StrUtil;

/**
 * @FileName: Demo4
 * @Description: TODO
 * @Author: MaWenHao
 * @Created: 2021/2/1 - 12:28
 * @Version: V1.0
 * @Company: 东方微银科技（北京）有限公司
 */
public class Demo4 {

    private User1 setMemberTaskStatDto(String memberName,String item,Object value) {
        User1 user = User1.builder()
                .name(memberName)
                .build();
        String methodName = MethodMappingEnum.findMethodName(item);
        if (StrUtil.isNotEmpty(methodName)) {
            ReflectUtil.invoke(user, methodName, value);
        }
        return user;
    }
}
